﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CapNhapThongTinSanPham.ascx.cs" Inherits="iShopping.Manager.UserControl.CapNhapThongTinSanPham" %>

<div id="chitietcapnhap"
 style="border-style: solid; border-width: 1px; padding: 2px; margin: 3px;" >
<div id="titlecapnhapsanpham" align="center"  
style="border-style: solid; border-width: 1px; padding: 2px; margin: 3px; background-color: #66CCFF" >
<h3>CẬP NHẬP THÔNG TIN LOẠI SẢN PHẨM</h3>
</div>
<!-- end title -->
<div id="capnhapsanpham"
 style="border-style: solid; border-width: 1px; padding: 2px; margin: 3px;" 
            align="center" >
 <p  align="center">DANH SÁCH LOẠI SẢN PHẨM TRONG HỆ THỐNG</p>
    <asp:GridView ID="GRLoaiSanPham" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" DataKeyNames="MaLoaiSanPham" 
        onpageindexchanging="GRLoaiSanPham_PageIndexChanging" 
        onrowcancelingedit="GRLoaiSanPham_RowCancelingEdit" 
        onrowdeleting="GRLoaiSanPham_RowDeleting" 
        onrowediting="GRLoaiSanPham_RowEditing" onrowupdated="GRLoaiSanPham_RowUpdated" 
        onrowupdating="GRLoaiSanPham_RowUpdating" 
                onselectedindexchanged="GRLoaiSanPham_SelectedIndexChanged" >
            <Columns>
                <asp:BoundField DataField="MaLoaiSanPham" HeaderText="Mã Loại Sản Phẩm" 
                    ReadOnly="True" />
                <asp:BoundField DataField="TenLoaiSanPham" HeaderText="Tên Loại Sản Phẩm" />
                <asp:CommandField ButtonType="Image" DeleteImageUrl="~/images/Admin/delete.gif" 
                    ShowDeleteButton="True" HeaderText="Xóa" />
                <asp:CommandField ButtonType="Image" CancelImageUrl="~/images/Admin/cancel.gif" 
                    EditImageUrl="~/images/Admin/edit.gif" ShowEditButton="True" 
                    UpdateImageUrl="~/images/Admin/update.gif" CausesValidation="False" 
                    HeaderText="Cập Nhập" />
                <asp:CommandField ButtonType="Image" HeaderText="Chọn" 
                    SelectImageUrl="~/images/Admin/action_edit.gif" SelectText="Chọn" 
                    ShowSelectButton="True" UpdateImageUrl="~/images/Admin/action_edit.gif" />
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />                  
        </asp:GridView>
         </div>
  <!-- end chi tiet cap nhap -->
</div>
<!-- begin them -->
   <div id="themloaisanpham"> 
	<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataMaLoaiSanPham" runat="server" Text="Mã Loại Sản Phẩm:" AssociatedControlID="dataMaLoaiSanPham" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataMaLoaiSanPham"  MaxLength="36"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataTenLoaiSanPham" runat="server" Text="Tên Loại Sản Phẩm:" AssociatedControlID="dataTenLoaiSanPham" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTenLoaiSanPham"  MaxLength="50"></asp:TextBox>
				</td>
			</tr>
			
		</table>
</div>
   <div id="them" align="center" >
       <asp:Button ID="btnThem" runat="server" Text="Thêm" onclick="btnThem_Click" 
           Width="77px" />
   </div>
